/*
 * @Author: LIFM0623 1944099171@qq.com
 * @Date: 2024-02-29 17:31:14
 * @LastEditors: LIFM0623 1944099171@qq.com
 * @LastEditTime: 2024-02-29 18:48:48
 * @FilePath: \scene_back_nest\src\common\decorator\role.decorator.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { SetMetadata } from '@nestjs/common';
import { userRoleEnum } from 'src/enums/userRoleEnum';

 export const ROLES_KEY = 'roles';

 export const  Roles = (...roles:userRoleEnum[])=>SetMetadata(ROLES_KEY,roles)